package com.xy.smartsms.util;

import org.json.JSONObject;

/**
 * Created by song on 2017/3/6.
 */

public class JsonUtil {

    
    public static Object getValFromJsonObject(JSONObject data, String key) {
        try {
            if (key != null && data != null && data.has(key)) {
                return data.get(key);
            }
        } catch (Throwable e) {
//            e.printStackTrace();
        }
        return "";
    }

}
